//
//  MineAccountCell.m
//  BakeCenter
//
//  Created by Barnett Wu on 15/9/21.
//  Copyright (c) 2015年 Baked. All rights reserved.
//

#import "MineAccountCell.h"
#import "Masonry.h"

@implementation MineAccountCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {

        UILabel *nameLabel = [[UILabel alloc] init];
    
        nameLabel.text = @"123";
        nameLabel.backgroundColor = [UIColor clearColor];
        nameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:nameLabel];

        UILabel *label2 = [[UILabel alloc]init];
        label2.text = @"12345";
        label2.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:label2];
        
        [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self.mas_centerY);
            
            make.left.mas_equalTo(self.mas_left).with.offset(20);
            
            make.right.equalTo(label2.mas_left).offset(-10);
            
            make.width.equalTo(@50);
            
            make.height.equalTo(@30);
        }];
        
        [label2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(self.mas_centerY);
            
            make.left.equalTo(nameLabel.mas_right);
            
            make.width.equalTo(@180);
            
            make.height.equalTo(nameLabel);
            
        }];
        
    }
    return self;
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
